package zhtt.example.fegin;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
import reactivefeign.spring.config.ReactiveFeignClient;
import reactor.core.publisher.Mono;

@ReactiveFeignClient(name="microservices-application", url = "http://microservices-application")
public interface MicroservicesApplicationFeginClient {

    @GetMapping({"/code/{code}"})
    Mono<String> getUserByCode(@PathVariable("code") String code);
}
